package com.snif.web.attach.core.config;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * MethodConfig
 *
 * @author Yakir
 */
public class MethodConfig {

	private String id;

	private String clazz;

	private String method; // HTTP请求方法: GET或POST

	private String methodName; // 目标方法名

	private String contentType; // 目标方法名

	private List<ParamMeta> params = new ArrayList<>();

	@Data
	public static class ParamMeta {

		private String paramName;

		private String paramType;

	}
	// Getters and Setters

	public String getContentType() {
		return contentType;
	}

	public void setContentType(String contentType) {
		this.contentType = contentType;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getClazz() {
		return clazz;
	}

	public void setClazz(String clazz) {
		this.clazz = clazz;
	}

	public String getMethod() {
		return method;
	}

	public void setMethod(String method) {
		this.method = method;
	}

	public String getMethodName() {
		return methodName;
	}

	public void setMethodName(String methodName) {
		this.methodName = methodName;
	}

	public List<ParamMeta> getParams() {
		return params;
	}

	public void setParams(List<ParamMeta> params) {
		this.params = params;
	}

}
